package com.bgl.mall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bgl.mall.common.ServerResponse;
import com.bgl.mall.pojo.Category;

import java.util.List;

/**
 * 商品类目服务
 * @author BGL
 * @date 2017/6/10
 */
public interface ICategoryService extends IService<Category> {
    ServerResponse addCategory(String categoryName, Integer parentId);

    ServerResponse updateCategoryName(Integer categoryId, String categoryName);

    ServerResponse<List<Category>> getChildrenParallelCategory(Integer categoryId);

    ServerResponse<List<Integer>> selectCategoryAndChildrenById(Integer categoryId);
}
